package com.ry.websocket.controller;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.ry.websocket.config.OneWebSocket;

@RestController
@RequestMapping("/socket")
public class WebSocketController {

	@RequestMapping("/send/{sid}")
	public String sendMessage(String message, @PathVariable String sid) {
		
		OneWebSocket.sendInfo(message, sid);
		
		return "ddd";
	}
	
}
